import request from '../utils/request';
// 获取列表接口
export const getGoodsList = (params) => request({
  url: 'goods',
  params,
});
// 删除商品接口
export const delGoods = (id) => request({
  url: `goods/${id}`,
  method: 'delete',
});
// 添加商品接口
export const addGoods = (data) => request({
  url: 'goods',
  method: 'post',
  data,
});
// 编辑商品接口
export const editGoods = (id, data) => request({
  url: `goods/${id}`,
  method: 'put',
  data,
});
